package com.huaxin.hxmodulesystem.dto.request;

import com.fasterxml.jackson.databind.JsonNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "更新系统字典请求DTO")
public class UpdateSysDictionaryReqDTO {
    @Schema(description = "字典key", example = "orderStatus")
    private String dictKey;
    @Schema(description = "字典值（JSON格式）")
    private String dictValue;

    @Schema(description = "描述说明", example = "订单初始状态（已更新）")
    private String dictDesc;

    @Schema(description = "排序序号", example = "15")
    private Integer sortOrder;

    @Schema(description = "是否启用", example = "1")
    private Integer isActive;

    @Schema(description = "版本号", example = "2")
    private Integer version;

    @Schema(description = "生效开始时间", example = "2025-01-01 08:00:00")
    private LocalDateTime validFrom;

    @Schema(description = "生效结束时间", example = "2025-12-31 23:59:59")
    private LocalDateTime validTo;
}